<script setup lang="ts">
import { computed, ref } from 'vue';

// 默认推断
const count = ref(100)
// const doubleCount = computed(() => count.value *2)

// 通过泛型参数来显式的指定类型
const doubleCount = computed<string>(() =>( count.value *2).toString())
</script>

<template>
  <div class="app-page">
    app
    
  </div>
</template>

<style lang="scss" scoped></style>
